﻿using SaleManagement.Models;
using SaleManagement.modules;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using Newtonsoft.Json;
using System.Threading.Tasks;
using System.Collections.Specialized;
using SaleManagement.Common;
namespace SaleManagement.Controllers
{
    public class WarehouseController
    {
        
        
        private WarehouseModel warehouse;
        public WarehouseController()
        {
            warehouse = new WarehouseModel();
        }
        public List<WarehouseModel> select(int shop_id)
        {
            return warehouse.select(shop_id);
        }
       public void setdata(string name,string address,string comment){
            warehouse.name = name;
            warehouse.address = address;
            warehouse.comments = comment;
       }
        public void insert(int shop_id)
        {
             warehouse.insert(warehouse, shop_id);
        }
        
    }
}
